//提交 mutations是更改Vuex状态的唯一合法方法

//点击进入下一题
export const ADD_ITEMNUM = (state, num) => { 
    state.itemNum += num;// 把方法传递过来的参数
}
//记录答案
export const REMBER_ANSWER = (state, id) => { 
    state.answerid.push(id);// 把方法传递过来的参数
}
//记录答案
export const INITIALIZE_DATA = (state) => { 
    state.itemNum = 1;
	state.allTime = 0;
	state.answerid = [];
}